package com.example.everying.model.entity.system;

/**
 * @program: everying-java
 * @description: 系统配置表
 * @author: szy
 * @create: 2025-09-27 09:41
 **/

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_config")
@ApiModel(value = "SysConfig", description = "系统配置表")
public class SysConfig {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "配置名称")
    @TableField("config_name")
    private String configName;

    @ApiModelProperty(value = "配置键名")
    @TableField("config_key")
    private String configKey;

    @ApiModelProperty(value = "配置键值")
    @TableField("config_value")
    private String configValue;

    @ApiModelProperty(value = "配置类型(0:系统配置 1:业务配置)")
    @TableField("config_type")
    private Integer configType;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
